package com.cskaoyan.order.remote;

import com.cskaoyan.mall.dto.ItemToOrderDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author silic xia
 * @since 2022/12/03 18:08
 */
@FeignClient("duolai-shopping")
public interface ShoppingFeignClient {

    @GetMapping("/feign/order")
    ItemToOrderDTO selectItemByPrimaryKey(@RequestParam(name = "productId") Long productId);
}

